#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("薯条");
    ui->comboBox->addItem("炸鸡");
    ui->comboBox->addItem("鸡翅");

    ui->comboBox_2->addItem("麦辣鸡腿堡");
    ui->comboBox_2->addItem("巨无霸");
    ui->comboBox_2->addItem("培根蔬萃牛堡");

    ui->comboBox_3->addItem("可乐");
    ui->comboBox_3->addItem("雪碧");
    ui->comboBox_3->addItem("咖啡");
}

Widget::~Widget()
{
    delete ui;
}
void Widget::on_pushButton_clicked()
{
    qDebug()<<"小吃:"<<ui->comboBox->currentText();
    qDebug()<<"汉堡:"<<ui->comboBox_2->currentText();
    qDebug()<<"饮料:"<<ui->comboBox_3->currentText();
}
